package homework;

public class Demo5 {
    public static void main(String[] args) {
        int sum = 0;
        for(int i=1900;i<=2023;i++){
            if((i%4==0&&i%100!=0)||i%400==0){
                System.out.print(i+"\t");
                sum++;
                if(sum % 10==0){
                    System.out.println();
                }
            }

        }



    }
}
